//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("TFormPrincipale.cpp", FormPrincipale);
USEFORM("TDlgImportCollage.cpp", DlgImportCollage);
USEFORM("FDlgRechercheProduit.cpp", DlgRechercheProduit);
USEFORM("TDlgDefAssociation.cpp", DlgDefAssociation);
//---------------------------------------------------------------------------
#ifndef TFormPrincipaleH
#include "TFormPrincipale.h"
#endif

WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR parametres, int )
{
  try
  {
     Application->Initialize();
     TFormPrincipale::Parametre = AnsiString(parametres);
     Application->CreateForm(__classid(TFormPrincipale), &FormPrincipale);
     Application->Run();
  }                                       
  catch (Exception &exception)
  {
    FormPrincipale->AutoSaveTmp();
    Application->ShowException(&exception);
  }
  catch (...)
  {
     FormPrincipale->AutoSaveTmp();
     try
     {
       throw Exception("");
     }
     catch (Exception &exception)
     {
       Application->ShowException(&exception);
     }
  }
  return 0;
}
//---------------------------------------------------------------------------
